package com.sie.service;

import com.sie.entity.Role;

import javax.servlet.http.HttpServletRequest;
import java.sql.SQLException;
import java.util.List;
import java.util.Map;

public interface RoleService {
    Map findAll(HttpServletRequest request);

    Map addRole(HttpServletRequest request, Role role);

    Map updateRole(HttpServletRequest request, Role role);

    Map findByName(String name);

    Boolean findByNo(String no);

    Map setRole(HttpServletRequest request,String empId,List<String> roleID);

    Map getNo();

    Map deleteRoleById(String id, HttpServletRequest request);

    Map deleteRoleById(List<String> list, HttpServletRequest request);

    Map findByPage(Role role,String pageNum,String pageSize,HttpServletRequest request);


}
